using System;
using System.Collections.Generic;
using System.Text;

using Microsoft.Xna.Framework;

namespace HadronData
{
    public class World
    {
        private String m_strName;
        private List<Level> m_listLevels;

        public World()
        {
            m_listLevels = new List<Level>();
            m_strName = "Untitled World";
        }

        public Level GetLevel(String p_strLevelName)
        {
            foreach (Level level in m_listLevels)
                if (level.Name == p_strLevelName)
                    return level;
            return null;
        }

        public String Name
        {
            get { return m_strName; }
            set { m_strName = value; }
        }

        public List<Level> Levels
        {
            get { return m_listLevels; }
            set { m_listLevels = value; }
        }
    }
}
